package uk.ac.lkl.lpp.ui;



//import java.awt.Component;
//import javax.swing.JLabel;

import uk.ac.lkl.common.ui.ContextualisedViewCreator;
//import uk.ac.lkl.common.ui.EditingView;
import uk.ac.lkl.common.ui.View;
import uk.ac.lkl.lpp.PedagogyPlan;

import uk.ac.lkl.lpp.model.ldo.TeachingMethod;


public class TeachingMethodViewCreator extends
        ContextualisedViewCreator<TeachingMethod, PedagogyPlan> {

    public TeachingMethodViewCreator(PedagogyPlan plan) {
        super(plan);
    }


    public View<TeachingMethod> createView(TeachingMethod teachingMethod,
                                           PedagogyPlan plan) {
        View<TeachingMethod> view = new LabelTeachingMethodView(teachingMethod,plan.getModel());        
        TeachingMethodEditor editor = new TeachingMethodEditor(plan.getModel(),teachingMethod);

        return view;
    }

}
